package cn.tedu._02notice.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum statuscode
{
    SUCCESS(200,"操作成功"),
    FAIL(500,"操作失败"),
    NOT_FOUND(404,"未找到"),
    UNAUTHORIZED(401,"未授权"),
    FORBIDDEN(403,"禁止访问"),
    NOT_ACCEPTABLE(406,"请求数据格式错误"),
    REQUEST_TIMEOUT(408,"请求超时"),
    CONFLICT(409,"数据冲突"),
    UNSUPPORTED_MEDIA_TYPE(415,"不支持的媒体类型"),
    INTERNAL_SERVER_ERROR(500,"服务器内部错误");
    private Integer state;
    private String message;
}
